\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

\begin{document}

\begin{equation}
z
={\left(
x+
y
\right)}^2
\end{equation}

\end{document}
